package cn.qicaiwang.open.system.mapper;

import cn.qicaiwang.open.system.model.entity.SystemUserWechat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

public interface SystemUserWechatMapper extends BaseMapper<SystemUserWechat> {
    @Select("select * from system_user_wechat where union_id = #{unionId}")
    SystemUserWechat selectOneByUnionId(String unionId);

    @Select("select * from system_user_wechat where user_id = #{userId}")
    SystemUserWechat selectOneByUserId(String userId);
}
